home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
x2ftp
/
msdos
/
fg
/
fgl402e
/
expas.arj
/
TEMP
/
09-01.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1995-01-20
|
788b
|
36 lines
program main;
uses fgmain, fgmisc, fgpcx;
var
old_mode : integer;
read_status, write_status : integer;
begin
fg_initpm;
if (fg_testmode(19,1) = 0) then
begin
write('This program requires a 320 ');
writeln('x 200 MCGA graphics mode.');
exit;
end;
old_mode := fg_getmode;
fg_setmode(19);
read_status := fg_showpcx('CORAL.PCX'+chr(0),0);
fg_waitkey;
if (read_status = 0) then
write_status := fg_makepcx(0,319,80,99,'NEW.PCX'+CHR(0))
else
write_status := 1;
fg_setmode(old_mode);
fg_reset;
if (read_status = 1) then
writeln('CORAL.PCX not found.')
else if (read_status = 2) then
writeln('CORAL.PCX is not a PCX file.');
if (write_status = 1) then
writeln('NEW.PCX not created.');
end.